<?php include TMPL_PATH.'public/header.phtml';?>
<div class="subnav">
    <div class="content-menu ib-a blue line-x">
        <a href='javascript:;' class="on"><em>发货列表</em></a>
    </div>
</div>
<div class="bk"></div>
<div class="pad_10">
<form name="myform" id="myform" action="<?php echo U('order/order_send_export_ajax')?>" method="post" >
<div class="table-list">
    <table width="100%" cellspacing="0" >
        <thead>
            <tr>
            <th width="20"><input type="checkbox" value="" id="check_box" onclick="selectall('oids[]');"></th>
            <th width="150">订单号</th>
            <th align='center' width="80">订单总金额</th>
            <th align='center' width="80">应付金额</th>
            <th align='left' width="300">收货人</th>
            <th align='center' width="80">订单状态</th>
            <th align='center' width="80">付款状态</th>
            <th align='center' width="80">发货状态</th>
            <th align='center' width="120">下单时间</th>
						<th>管理操作</th>
            </tr>
        </thead>
    <tbody>
    <?php
   	if(isset($orderList) && $orderList):
   		foreach ($orderList as $v):
   ?>
			<tr>
				<td align="center"><input type="checkbox" name="oids[]" value="<?php echo $v['id'];?>"></td>
					<td align='center'><?php echo $v['order_sn']?></td>
					<td align='center'><?php echo $v['order_amount'];?></td>
					<td align='center'><?php echo $v['pay_amount'];?></td>
					<td><?php echo $v['delivery_last_name'].($v['delivery_first_name'] ? '.'.$v['delivery_first_name']: '');?><?php echo ' [ '. ($v['delivery_phone'] ? $v['delivery_phone'] : null). ' ] ';?><br/>
					<?php echo '['. $v['delivery_country'] . ($v['delivery_province'] ? ' - '.$v['delivery_province'] : null). ' ] '. $v['delivery_address'];?>
					</td>
					<td align='center'><?php echo OrderModel::$orderStatusCn[$v['order_status']];?></td>
					<td align='center'><?php echo OrderModel::$paymentStatus[$v['payment_status']];?></td>
					<td align='center'><?php echo OrderModel::$shippingStatus[$v['shipping_status']];?></td>
					<td align='center'><?php echo date('Y-m-d H:i:s', $v['start_time']);?></td>
					<td align='center'> 
					<a href="javascript:openwinx('<?php echo U('order/order_print', 'oid='. $v['id'])?>','order_print');">打印</a> |  
					<a href="<?php echo U('order/order_edit', 'oid='.$v['id']);?>">查看</a>
					</td>
				</tr>
	<?php 
		endforeach;
		endif;
	?>
   </tbody>
    </table>
<div class="btn">
<input type="submit" class="button" name="dosubmit" value="批量导出"/>&nbsp;&nbsp;&nbsp;&nbsp;
</div>
<div id="pages"><?php echo $pageShow;?></div>
</div>
</div>
</body>
</html>